package com.deve.pig.model;

import java.util.Date;

public class Merchant {
    private Integer id;

    private String name;

    private String description;

    private Byte starLevel;

    private Byte isReservation;

    private Byte isDiscount;

    private String discountDescription;

    private Integer categoryId;

    private Integer incity1;

    private Integer incity2;

    private String address;

    private Double longitude;

    private Double latitude;

    private Double consumPerPerson;

    private String label;

    private String coverImage;

    private Date createTime;

    private Date updateTime;

    private Byte isTop;

    private Byte isPublish;

    private Date publishTime;
    
    //和用户的距离
    private double withUserDistance;
    
    public Merchant() {
    }

    public Merchant(Integer id, String coverImage, Date updateTime) {
        this.id = id;
        this.coverImage = coverImage;
        this.updateTime = updateTime;
    }

    public Merchant(Integer id, String name, String description, Byte starLevel, Byte isReservation, Byte isDiscount, String discountDescription, Integer categoryId, Integer incity1, Integer incity2, String address, Double longitude, Double latitude, Double consumPerPerson, String label, String coverImage, Date createTime, Date updateTime, Byte isTop, Byte isPublish, Date publishTime) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.starLevel = starLevel;
        this.isReservation = isReservation;
        this.isDiscount = isDiscount;
        this.discountDescription = discountDescription;
        this.categoryId = categoryId;
        this.incity1 = incity1;
        this.incity2 = incity2;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
        this.consumPerPerson = consumPerPerson;
        this.label = label;
        this.coverImage = coverImage;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isTop = isTop;
        this.isPublish = isPublish;
        this.publishTime = publishTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Byte getStarLevel() {
        return starLevel;
    }

    public void setStarLevel(Byte starLevel) {
        this.starLevel = starLevel;
    }

    public Byte getIsReservation() {
        return isReservation;
    }

    public void setIsReservation(Byte isReservation) {
        this.isReservation = isReservation;
    }

    public Byte getIsDiscount() {
        return isDiscount;
    }

    public void setIsDiscount(Byte isDiscount) {
        this.isDiscount = isDiscount;
    }

    public String getDiscountDescription() {
        return discountDescription;
    }

    public void setDiscountDescription(String discountDescription) {
        this.discountDescription = discountDescription == null ? null : discountDescription.trim();
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getIncity1() {
        return incity1;
    }

    public void setIncity1(Integer incity1) {
        this.incity1 = incity1;
    }

    public Integer getIncity2() {
        return incity2;
    }

    public void setIncity2(Integer incity2) {
        this.incity2 = incity2;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getConsumPerPerson() {
        return consumPerPerson;
    }

    public void setConsumPerPerson(Double consumPerPerson) {
        this.consumPerPerson = consumPerPerson;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage == null ? null : coverImage.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getIsTop() {
        return isTop;
    }

    public void setIsTop(Byte isTop) {
        this.isTop = isTop;
    }

    public Byte getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(Byte isPublish) {
        this.isPublish = isPublish;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

	public double getWithUserDistance() {
		return withUserDistance;
	}

	public void setWithUserDistance(double withUserDistance) {
		this.withUserDistance = withUserDistance;
	}
}
